package baidu.reader.common
{
    import flash.events.*;

    public class ReaderEvent extends Event
    {
        private var _data:Object;
        public static const SCROLL:String = "scroll";
        public static const GO_BACK_FROM_TOC:String = "go back from toc";
        public static const SHOW_TOC:String = "show toc";
        public static const TOC_GO_TO_PAGE:String = "toc go to page";
        public static const GO_TO_POSITION:String = "go to position";
        public static const DISPLAY_TEXT_REFRESH:String = "display_text_refresh";
        public static const SCROLLED_BOTTOM:String = "scrolled bottom";
        public static const SCROLLED_TOP:String = "scrolled top";
        public static const TOGGLE_FULLSCREEN:String = "toggle fullscreen";
        public static const GO_SINGLE_PAGE:String = "GO_SINGLE_PAGE";
        public static const GO_DOUBLE_PAGE:String = "GO_DOUBLE_PAGE";
        public static const DISPLAY_TYPE_CHANGED:String = "DISPLAY_TYPE_CHANGED";
        public static const FONT_NAME_CHANGED:String = "FONT_NAME_CHANGED";
        public static const FONT_SIZE_CHANGED:String = "FONT_SIZE_CHANGED";
        public static const ZOOM_IN:String = "ZOOM_IN";
        public static const ZOOM_OUT:String = "ZOOM_OUT";
        public static const ORIGINAL_SIZE:String = "ORIGINAL_SIZE";
        public static const GO_NEXT_PAGE:String = "go next page";
        public static const GO_NEXT_TWO_PAGE:String = "go next two page";
        public static const GO_PREV_PAGE:String = "GO_PREV_PAGE";
        public static const GO_PREV_TWO_PAGE:String = "GO_PREV_TWO_PAGE";
        public static const GO_FIRST_PAGE:String = "GO_FIRST_PAGE";
        public static const SHOW_SETTING_PANEL:String = "SHOW_SETTING_PANEL";
        public static const CLOSE_SETTING_PANEL:String = "CLOSE_SETTING_PANEL";
        public static const TEXT_FORMAT_CHANGED:String = "TEXT_FORMAT_CHANGED";
        public static const SHOW_PAGE_NUMBER_INPUT:String = "SHOW_PAGE_NUMBER_INPUT";
        public static const TEXT_ADD:String = "TEXT_ADD";
        public static const HTML_MOUSE_WHEEL:String = "HTML_MOUSE_WHEEL";
        public static const REACH_MAX_ZOOM_LEVEL:String = "REACH_MAX_ZOOM_LEVEL";
        public static const REACH_MIN_ZOOM_LEVEL:String = "REACH_MIN_ZOOM_LEVEL";
        public static const ZOOM_LEVEL_NORMAL:String = "ZOOM_LEVEL_NORMAL";
        public static const GO_PREV_LINE:String = "GO_PREV_LINE";
        public static const GO_NEXT_LINE:String = "GO_NEXT_LINE";
        public static const GO_NEXT_CHAPTER:String = "GO_NEXT_CHAPTER";
        public static const DOC_BLOCK_LOADED:String = "DOC_BLOCK_LOADED";
        public static const DOC_DOUBLE_MODEL_BUSY:String = "DOC_DOUBLE_MODEL_BUSY";

        public function ReaderEvent(param1:String, param2:Object = null, param3:Boolean = true, param4:Boolean = false)
        {
            this._data = param2;
            super(param1, param3, param4);
            return;
        }

        public function get data() : Object
        {
            return this._data;
        }

        public function set data(param1:Object) : void
        {
            this._data = param1;
            return;
        }

    }
}
